import { defineStore } from "pinia"
import { ref, computed } from "vue"

export const useCounterStore = defineStore('counter', () => {
  const count = ref(0)
  const get_count = computed(() => {
    return count.value
  })

  function increment(num: number) {
    count.value += num
  }

  return { get_count, increment }
})